import junit.framework.TestCase;

public class ComplexTest extends TestCase {
    Complex c1 = new Complex(3, 5);
    Complex c2 = new Complex(3, 5);
    double a = 5;

    public void testComplexAdd() throws Exception {
        c1.ComplexAdd(c2);
        assertEquals(6.0, c1.getRealPart());
        assertEquals(10.0, c1.getImaginPart());
    }

    public void testComplexMinus() throws Exception {
        c1.ComplexMinus(c2);
        assertEquals(0.0, c1.getRealPart());
        assertEquals(0.0, c1.getImaginPart());

    }

    public void testComplexMulti() throws Exception {
        c1.ComplexMulti(c2);
        assertEquals(9.0, c1.getRealPart());
        assertEquals(25.0, c1.getImaginPart());

    }
}

